package com.huanlis.consumer.feign.client;

import com.huanlis.cloud.utils.R;
import com.huanlis.consumer.feign.domain.TeacherEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 
 *
 * @author lihuan
 * @since 2023/10/23 17:45:53
 */
@FeignClient(value = "spring-boot-async-provider" , contextId = "searchs")
public interface ProviderFeignClient {

    @GetMapping("/async/provider/hello/test")
    ResponseEntity<String> getTest(@RequestParam("id") Integer id);

    @PostMapping("/async/provider/teacher/save")
    R saveTeacher(@RequestBody TeacherEntity teacherEntity);

}
